package com.lq.file.filemanager.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;

/**
 * @program: file-manager
 * @description:
 * @author: LQ
 * @create: 2021-08-07 10:15
 */
public interface FileService {
    String readFileToBase64(String remoteFileName,String remoteDir) throws Exception;

    String readFileToBase64(HttpServletRequest request, HttpServletResponse response, String remoteFileName, String remoteDir);

    public void download(String remoteFileName,String localFileName,String remoteDir);

    public boolean uploadFile(InputStream inputStream, String originName, String remoteDir);

}
